package mvc.model.pojos;

public class AddressBean {
    //地址编号
    private int anumber;
    //收货人姓名
    private String people;
    //电话
    private String phone;
    //省份
    private String province;
    //城市
    private String city;
    //区/县
    private String county;
    //乡/街
    private String village;
    //地址
    private String addr;
    //所属用户
    private int uid;
    //是否为默认地址 0为false，1为true
    private int isdefault;
    //是否在用 0为false，1为true
    private int flag;

    @Override
    public String toString() {
        return province + city + county + village + addr;
    }

    public AddressBean(int anumber, String people, String phone, String province, String city, String county, String village, String addr, int uid, int isdefault, int flag) {
        this.anumber = anumber;
        this.people = people;
        this.phone = phone;
        this.province = province;
        this.city = city;
        this.county = county;
        this.village = village;
        this.addr = addr;
        this.uid = uid;
        this.isdefault = isdefault;
        this.flag = flag;
    }

    public AddressBean() {
    }

    public int getAnumber() {
        return anumber;
    }

    public void setAnumber(int anumber) {
        this.anumber = anumber;
    }

    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(int isdefault) {
        this.isdefault = isdefault;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

}
